package com.pai.test;

import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetAddress;

import com.pai.service.BroadCastService;

public class UDPSender {
	public static void main(String[] args) throws Exception {  
/*        DatagramSocket clientDSocket ;  
        DatagramPacket sendDP =  
                 new DatagramPacket(new byte[1024], 1024,InetAddress.getByName("255.255.255.255"),9998);  
        clientDSocket = new DatagramSocket();  
        try {  
                 clientDSocket.send(sendDP);  
        } catch (IOException e) {  
                 e.printStackTrace();  
        }  
        clientDSocket.close();*/
		BroadCastService.myservice.sendMessage("xixixi",InetAddress.getByName("255.255.255.255"),9999);
}  
}
